vowels = ['a', 'e', 'i', 'o', 'u']
word = input("provide a word to search for vowels:")
found = {}  # 字典
for letter in word:
    if letter in vowels:
        found.setdefault(letter,0)
        found[letter] += 1

for k, v in sorted(found.items()):  # items(）方法会向for循环返回下一个键和它的关联值
    print(k, 'was found', v, 'time(s).')


